/* ==========================
   ShopNav Modern Theme (Optimized)
   ========================== */

/* ==========================
   1. Core Variables (easy theming)
   ========================== */
:root {
  --brand: #29A56C;          /* Primary green */
  --brand-dark: #218c57;     /* Darker hover green */
  --brand-deep: #0E4B35;     /* Footer green */
  --text-dark: #1a1a1a;
  --text-gray: #666666;
  --white: #FFFFFF;
  --black: #000000;
  --red: #FF0000;
  --light-gray: #F0F0F0;

  /* Effects */
  --radius: 8px;
  --transition: all 0.25s ease;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-lg: 0 3px 10px rgba(0,0,0,0.2);
}

/* ==========================
   2. Header
   ========================== */
.sh-header-main {
  background-color: var(--white);
  color: var(--black);
  box-shadow: var(--shadow-sm);
}
.sh-header-location-icon,
.sh-header-arrow-icon { fill: var(--black) !important; }
.sh-header-account-icon,
.sh-header-search-icon { stroke: var(--black) !important; }
.sh-header-cart-icon { stroke: var(--black) !important; fill: none !important; }
.sh-header-cart-badge {
  background-color: var(--brand);
  color: var(--white);
}
.sh-header-mob-menu-icon { color: var(--black); }

/* ==========================
   3. Footer
   ========================== */
.sh-footer-main {
  background-color: var(--brand-deep);
  color: var(--white);
}
.sh-footer-icon { color: var(--brand) !important; }

/* ==========================
   4. Product Cards
   ========================== */
.sh-product-card {
  border: 1px solid #E5E5E5;
  border-radius: var(--radius);
  transition: var(--transition);
}
.sh-product-card:hover { box-shadow: var(--shadow-lg); }
.sh-product-card-price { color: var(--brand); font-weight: 600; }
.sh-product-card-mrp { color: var(--text-gray); text-decoration: line-through; }
.sh-product-card-name { color: var(--text-dark); font-weight: 500; }

/* ==========================
   5. Discount Tags
   ========================== */
.sh-product-card-discount-tag,
.sh-product-discount-tag {
  background-color: var(--brand);
  color: var(--white);
  font-weight: 500;
}
.sh-product-card-discount-tag { border-radius: 8px 0 8px 0; top: 0; left: 0; }
.sh-product-discount-tag { border-radius: 4px; }

/* ==========================
   6. Buttons
   ========================== */
.sh-solid-button,
.sh-product-buy-now-button {
  border-radius: var(--radius);
  border: 1px solid var(--brand) !important;
  background-color: var(--brand);
  color: var(--white);
  padding: 12px;
  font-weight: 600;
  transition: var(--transition);
}
.sh-solid-button:hover,
.sh-product-buy-now-button:hover {
  background-color: var(--brand-dark) !important;
}

.sh-outlined-button {
  border-radius: var(--radius);
  border: 1px solid var(--brand);
  background: transparent;
  color: var(--brand);
  transition: var(--transition);
}
.sh-outlined-button:hover {
  background-color: var(--brand);
  color: var(--white);
}

/* Quantity Buttons */
.sh-product-plus-minus-button {
  background-color: #E8FFF1;
  color: var(--brand);
  border: 1px solid #E8FFF1;
  border-radius: 4px;
  fill: var(--brand);
  transition: var(--transition);
}
.sh-product-plus-minus-button:hover {
  background-color: var(--brand);
  color: var(--white);
  fill: var(--white);
}

/* Enquiry */
.sh-product-card-enquiry,
.sh-product-enquiry {
  border: 1px solid var(--brand) !important;
  color: var(--brand) !important;
  background: var(--white) !important;
  border-radius: var(--radius);
  transition: var(--transition);
}
.sh-product-card-enquiry:hover,
.sh-product-enquiry:hover {
  background: var(--brand);
  color: var(--white) !important;
}

/* ==========================
   7. Bottom Navigation
   ========================== */
.sh-bottom-nav-main { background-color: var(--brand); }
.sh-bottom-nav-selected {
  stroke: var(--white) !important;
  color: var(--white) !important;
  background-color: rgba(255,255,255,0.15);
  border-radius: var(--radius);
  transition: var(--transition);
}
.sh-bottom-nav-unselected { stroke: #bbb !important; color: #bbb !important; }
.sh-bottom-nav-cart-badge { background-color: var(--white) !important; color: var(--brand) !important; }

/* ==========================
   8. Categories
   ========================== */
.sh-category-card {
  margin: 0 10px 10px;
  padding-top: 8px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.sh-category-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.sh-categories-container { background-color: var(--white); }
.sh-row-title-divider { display: none; }

/* ==========================
   9. Icons / Wishlist
   ========================== */
.sh-product-wishlist-desktop { border-color: var(--red) !important; }
.sh-product-share-icon { stroke: var(--brand) !important; }
.sh-product-social-button { background-color: var(--brand); fill: var(--brand); }
.sh-product-wishlisted-icon { fill: var(--red) !important; }
.sh-product-not-wishlisted-icon { stroke: var(--red) !important; transition: var(--transition); }
.sh-product-not-wishlisted-icon:hover { stroke: #cc0000 !important; }

/* ==========================
   10. Responsive Fixes
   ========================== */
@media (max-width: 768px) {
  .sh-product-card-enquiry,
  .sh-product-enquiry,
  .sh-product-buy-now-button {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
  }
}

@media (min-width: 769px) {
  .sh-product-card .sh-product-buy-now-button {
    opacity: 0;
    transition: var(--transition);
  }
  .sh-product-card:hover .sh-product-buy-now-button { opacity: 1; }
}
